<?php
 
class Config {
    
    public static $cronJobCheckFrequency = 600; // 10 minutes
    public static $lockedUpdatesCheckFrequency = 600; // 10 minutes
    public static $regularUpdateFrequency = 86400; // 1 day
    public static $newUserSummaryFrequency = 86400; // 1 day
    public static $maxRecordsPerUpdate = 1000;
    
    public static $countries = array(
        "au" => array(
            "name" => "Australia",
            "itunes" => "au",
            "code" => "143460",
        ),
        "ca" => array(
            "name" => "Canada",
            "itunes" => "ca",
            "code" => "143455",
        ),
        "ie" => array(
            "name" => "Ireland",
            "itunes" => "ie",
            "code" => "143449",
        ),
        "nz" => array(
            "name" => "New Zealand",
            "itunes" => "nz",
            "code" => "143461",
        ),
        "sp" => array(
            "name" => "Singapore",
            "itunes" => "sp",
            "code" => "143464",
        ),
        "sa" => array(
            "name" => "South Africa",
            "itunes" => "sa",
            "code" => "143472",
        ),
        "gb" => array(
            "name" => "United Kingdom",
            "itunes" => "gb",
            "code" => "143444",
        ),
        "us" => array(
            "name" => "United States",
            "itunes" => "us",
            "code" => "143441",
        ),
        // TODO More
        // See http://blogs.oreilly.com/iphone/2008/08/scraping-appstore-reviews.html for store codes
    );
    
    public static $providers = array(
        "itunes" => array(
            "configFields" => array("id", "country"),
            "uniqueIdField" => "id",
        ),
        "play" => array(
            "configFields" => array("id"),
            "uniqueIdField" => "id",
        ),
        "twitter" => array(
            "configFields" => array("term"),
            "uniqueIdField" => "term",
        ),
    );
    
}